package com.bicon.botu.mall.component.api;

import com.bicon.botu.core.base.common.controller.BaseController;
import com.bicon.botu.core.base.common.entity.BaseResult;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

/**
 * <p>
 * 通用接口
 * </p>
 *
 * @author tandk
 * @since 2017-07-31
 */
@RestController
@RequestMapping("/V1.0.0/api/base/common")
public class CommonApi extends BaseController {

    @RequestMapping(value = "/getServerTime", method = RequestMethod.GET)
    public BaseResult getTime() {
        return sendResult200(new Date());
    }
}
